$(function(){
	$('#userLogDatagrid').datagrid({
		url:logUrl,
		title:'用户日志列表',
		fitColumns:true,
		rownumbers:true,
		pageSize:15,
		pageNumber:1,
		pageList:[2,5,10,15,20,25,30,40,50],
		columns:[[
		{field:'uid',title:'id',checkbox:true},
		{field:'user_name',title:'用户',sortable:true},
		{field:'create_ip',title:'ip'},
		{field:'create_time',title:'时间',formatter:timestampToDateTime,sortable:true,order:'desc'},
		{field:'action_code',title:'动作标志'},
		{field:'content',title:'内容'}
		]],
		onLoadError:function(data){
			var info=eval('('+data.responseText+')');
			$.messager.confirm('错误提示',info.message,function(r){
				var tab=$('#qyTabs').tabs('getSelected');
				var index=$('#qyTabs').tabs('getTabIndex',tab);
				$('#qyTabs').tabs('close',index);
			});
		},
		pagination:true,		
	});
});
